package com.study.spring.hadoop.hdfs;

import org.apache.hadoop.conf.Configuration;
import org.springframework.context.annotation.Bean;

/**
 * FileSystem，需要一个
 * Configuration，所以我们在SpringBoot里面需要创建一个实例出来。
 */
@org.springframework.context.annotation.Configuration
public class HdfsRepository {

    @Bean
    public Configuration getConfiguration() {
        Configuration configuration = new Configuration();
        return configuration;
    }
}
